projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd3fd1f
)
(delete-trailing-whitespace): Don't delete formfeeds.
author
Gerd Moellmann
<gerd@gnu.org>
Mon, 29 Jan 2001 20:32:52 +0000
(20:32 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Mon, 29 Jan 2001 20:32:52 +0000
(20:32 +0000)
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index f81b05f13b16c6992d2750859a2f685bb122e5b5..092dfad5f1608a1e3b2939664f2d4ad5d3f8446e 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-237,6
+237,9
@@
This respects narrowing, created by \\[narrow-to-region] and friends."
(goto-char (point-min))
(while (re-search-forward "\\s-$" nil t)
(skip-syntax-backward "-" (save-excursion (forward-line 0) (point)))
+ ;; Don't delete formfeeds, even if they are considered whitespace.
+ (if (looking-at ".*\f")
+ (goto-char (match-end 0)))
(delete-region (point) (match-end 0))))))
(defun newline-and-indent ()